package extends_abstract.abstracthome;

public class user {
    private String name;
    private double num;

    public user(String name, double num) {
        this.name = name;
        this.num = num;
        System.out.println("成功定义用户"+this.name+"余额"+this.num);
    }

    public user() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }
}
